import { axios } from '@/utils/request'

const api = {
  year: '/system/gradeYear'
}

export function getSysGradeYearList (parameter) {
  return axios({
    url: api.year + '/list',
    method: 'get',
    params: parameter
  })
}
/**
 * 不分页列表
 * @param {Object} parameter
 */
export function getGradeYearList (parameter) {
  return axios({
    url: api.year + '/jlist',
    method: 'get',
    params: parameter
  })
}

export function saveSysGradeYear (parameter) {
  return axios({
    url: api.year + '/save',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function delSysGradeYear (parameter) {
  return axios({
    url: api.year + '/remove',
    method: 'post',
    params: parameter
  })
}

export const yearExport = api.year + '/export'
